#pragma once
#include"rbTree.h"
template<class K>
class Myset
{
public:
	struct SetKeyOfT
	{
		const K& operator()(const K& key)
		{
			return key;
		}
	};
	typedef typename RBTree<K, const K, SetKeyOfT>::Iterator iterator;
	typedef typename RBTree<K, const K, SetKeyOfT>::ConstIterator const_iterator;
	iterator begin()
	{
		return _s.Begin();
	}

	iterator end()
	{
		return _s.End();
	}

	const_iterator begin()const
	{
		return _s.Begin();
	}

	const_iterator end()const
	{
		return _s.End();
	}

	pair<iterator,bool> insert(const K& key)
	{
		return _s.insert(key);
	}
private:
	RBTree<K, const K, SetKeyOfT> _s;
};